{php include wl_template('common/header');}
<style>
	td>i{cursor:pointer; display:inline-block; width:100%; height:100%; color:#428bca;}
	.category-caret{display:inline-block; width:20px; margin: 0 10px; text-align:center; cursor:pointer; color:#d9534f;}
	.add.add_level0{cursor:pointer;}
</style>
<ul class="nav nav-tabs">
	<li  class="active" ><a href="#">商户分组列表</a></li>
	<li ><a href="{php echo web_url('store/group/edit')}">添加商户分组</a></li>
</ul>
<div class="app-content">
	<div class="app-table-list">
		<div class="panel panel-default">
			<div class="table-responsive">
				<table class="table table-hover">
					<thead>
						<tr>
							<th class="text-center">分组名称</th>
							<th class="text-center">是否默认</th>
							<th class="text-center">是否开启</th>
							<th class="text-center">操作</th>
						</tr>
					</thead>
					<tbody>
						{loop $groups $group}
						<tr class="text-center">
							<td>
								{$group['name']}
							</td>
							<td>{php echo tpl_change_status('store/group/changeStatus&field_name=isdefault&id='.$group['id'],$group['isdefault'])}</td>
							<td>{php echo tpl_change_status('store/group/changeStatus&field_name=enabled&id='.$group['id'],$group['enabled'])}</td>
							<td style="position:relative;">
								<a href="{php echo web_url('store/group/edit',array('id'=>$group['id']))}">编辑</a>
								-
								<a href="{php echo web_url('store/group/delete',array('id'=>$group['id']))}">删除</a>
								-
								<a href="javascript:;" data-url="{php echo h5_url('pages/mainPages/store/list',['cate_one'=>$group['id']])}" id="js-copy{$group['id']}" class="js-clip">复制链接</a>
							</td>
						</tr>
						{/loop}
					</tbody>
				</table>
			</div>
		</div>
		<div class="app-table-foot clearfix">
			<div class="pull-left">

			</div>
			<div class="pull-right">
				{$pager}
			</div>
		</div>
	</div>
</div>
{php include wl_template('common/footer');}
